package com.ts.api.common.constant.channel;

import com.gitee.apanlh.util.base.Eq;

/**
 *  渠道是否老用户注册
 */
public enum ChannelIsRegisterEnum {

    // 0新用户
    NEW("0"),
    // 1老用户
    OLD("1"),
    ;

    private String type;

    ChannelIsRegisterEnum(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public static boolean hasNew(String currentType) {
        return Eq.object(ChannelIsRegisterEnum.NEW.getType(), currentType);
    }

    public static boolean hasOld(String currentType) {
        return Eq.object(ChannelIsRegisterEnum.OLD.getType(), currentType);
    }
}
